import request from '@/utils/request'

// 查询展项列列表
export function listExhibition(query) {
  return request({
    url: '/exhibition/exhibition/list',
    method: 'get',
    params: query
  })
}

// 查询展项列详细
export function getExhibition(id) {
  return request({
    url: '/exhibition/exhibition/' + id,
    method: 'get'
  })
}

// 新增展项列
export function addExhibition(data) {
  return request({
    url: '/exhibition/exhibition',
    method: 'post',
    data: data
  })
}

// 修改展项列
export function updateExhibition(data) {
  return request({
    url: '/exhibition/exhibition',
    method: 'put',
    data: data
  })
}

// 删除展项列
export function delExhibition(id) {
  return request({
    url: '/exhibition/exhibition/' + id,
    method: 'delete'
  })
}
